It seems like that your SSH access is restricted while SFTP is allowed. Given that your CTO can connect without issue. Here’s troubleshooting steps: Port 22: Ensure this line exists and is not commented out (preceded by a #). If it’s a differe
The VM has OS Login enabled, but you don't have sufficient IAM permissions to use OS Login. To connect to a VM that has OS Login enabled, you must have the permissions required for OS Login.
The reason I received "Permission denied (publickey)" was that I was using gcloud compute ssh INSTANCE in a docker container running as root. Like a person here.